import request from '@/utils/request'

export const SalesOrdersAPI = (data) => {
  return request.get('api/order-service/report/skuCollect/', data)
}
// 获取订单数量
export const workOrderAPI = (data) => {
  return request.get(`task-service/task/taskReportInfo/${data}`)
}

// 获取销售总量
export const salesCount = (data) => {
  return request.get('/order-service/report/orderCount', {
    params: data
  })
}
// 获取销售金额
export const salesPriceAPI = (data) => {
  return request.get('/order-service/report/orderAmount', {
    params: data
  })
}
// 获取一定时间内的额top10
export const getTopGoodsAPI = (data) => {
  return request.get(`/order-service/report/skuTop/${data}`)
}

// echarts
/**
 * 获取销售额总计
 */
export const getSaleCount = (data) => {
  return request.get(`order-service/report/amountCollect/${data}`)
}
/**
 * 销售区域总额
 */
export const getSaleAreaCount = (data) => request.get(`/order-service/report/regionCollect/${data}`)

// top5
export const getTopFive = () => request.get('/vm-service/node/nodeCollect')
